package java_oop_chapter3;

import java.util.Scanner;

public class Class {
	String className;
	String TeacherNmae;

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		StudentManagement sm = new StudentManagement();
		//Students stu = new Students(); Don't put 27 line into this line
		while (true) {
			System.out.println("1.show all");
			System.out.println("2.add student");
			System.out.println("3.delete student");
			System.out.println("4.show number");
			System.out.print("please choose:");
			
			int choose = in.nextInt();
			switch (choose) {
			case 1:
				sm.showAll();
				break;
				
			case 2:
				Students stu = new Students();
				sm.addStu(stu);
				break;

			case 3:
				System.out.println("please input name you want to delete:");
				String name = in.next();
				sm.delStu(name);
				break;
				
			case 4:
				sm.showNumber();
			
			default:
				break;
			}
			System.out.println("continue? Y|N :");
			String response = in.next();
			if(response.equalsIgnoreCase("n")) {
				System.out.println("logout successfully");
				return;
			}
		}

	}

}
